package com.hejia.alauda.entity;

import java.util.Date;

import javax.persistence.Column;

/**该表和User是一对一关系，利用user的id做该表的id
 * 积分 Created by Johnny(johnny@hejiajinrong.com) on 14-9-9.
 */
public class Credit extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5180581037048270112L;
	
	@Column
	private Integer credits;
	
	public Credit() {
		super();
		setModifyDate(new Date());
	}
	
	public Integer getCredits() {
		return credits != null ? credits : 0;
	}

	public void setCredits(Integer credits) {
		this.credits = credits;
	}
}
